/*
 * Copyright (C) 2021 Baidu, Inc. All Rights Reserved.
 */
package com.chukun.rpc.protocol.protocol;

import java.io.Serializable;

/**
 * <p>rpc通信协议设计<p/>
 *
 * @author chukun
 * @version 1.0
 * @since 1.0-SNAPSHOT
 */
public class TinyRpcProtocol<T> implements Serializable {

    /**
     * 消息头
     */
    private MessageHeader header;

    /**
     * 消息体
     */
    private T body;

    public MessageHeader getHeader() {
        return header;
    }

    public void setHeader(MessageHeader header) {
        this.header = header;
    }

    public T getBody() {
        return body;
    }

    public void setBody(T body) {
        this.body = body;
    }
}
